package de.openlaboratory.elib.core;

import java.util.List;
import java.util.Vector;

import org.apache.chemistry.opencmis.client.api.Repository;

import de.openlaboratory.cmis.repository.LocalRepository;
import de.openlaboratory.elib.model.system.User;

public class UserResources
{
	private static UserResources instance = null;
	private User user;

	private UserResources(User user)
	{
		this.user = user;
	}
	
	public static UserResources getInstance(User user)
	{
		if (instance == null)
		{
			instance = new UserResources(user);
		}
		return instance;
	}
	
	public List<Repository> getRepositories()
	{
		List<Repository> repositories = new Vector<Repository>();
		
		repositories.add((Repository) new LocalRepository("C:\\Users\\xeiojt\\Desktop\\DATA\\My Box Files\\Studium"));
		repositories.add((Repository) new LocalRepository("C:\\Users\\xeiojt\\Desktop\\DATA\\USB-Stick\\eBooks"));
		
		return repositories;
		
	}
}